package com.chinacoal.microservice.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.chinacoal.microservice.pojo.CcmsSmartleasingWorkOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhuliang
 * @version V1.0
 * @Description: 工单-mybatis-plus接口类
 * @date 2020-12-16 17：50
 */
public interface CcmsSmartleasingWorkOrderMapper extends BaseMapper<CcmsSmartleasingWorkOrder> {

    /**
     * @Description: 查询所有的工单信息（带分页）
     * @author zhuliang
     * @date 2020/12/16 18:22
     */
    List<CcmsSmartleasingWorkOrder> getAllByPage(Page<CcmsSmartleasingWorkOrder> toPage,
                                                 @Param("fkPropertyCompanyId") String fkPropertyCompanyId,
                                                 @Param("fkAdministrativeOfficeId") String fkAdministrativeOfficeId);

    /**
     * @Description: 条件查询所有的工单信息（带分页）
     * @author zhuliang
     * @date 2020/12/16 18:22
     */
    List<CcmsSmartleasingWorkOrder> getAllByCondition(@Param("workOrderStatus") String workOrderStatus,
                                                      @Param("fkWorkOrderTypeId") String fkWorkOrderTypeId,
                                                      @Param("fkPropertyCompanyId") String fkPropertyCompanyId,
                                                      @Param("fkAdministrativeOfficeId") String fkAdministrativeOfficeId,
                                                      Page<CcmsSmartleasingWorkOrder> toPage);

    /**
     * @Description: 根据id查询工单信息
     * @author zhuliang
     * @date 2020/12/16 18:32
     */
    CcmsSmartleasingWorkOrder getWorkOrderById(@Param("pkWorkOrderId") String pkWorkOrderId);

    /**
     * @Description: 微信端-查询所有的工单信息（不带分页）
     * @author zhuliang
     * @date 2020/12/16 18:22
     */
    List<CcmsSmartleasingWorkOrder> getAll(@Param("submitterContactInformation") String submitterContactInformation);
}
